package com.forekonw.demotest1103wan02;

public class HourlyEmployee extends Employee {
    private double wage;
    private double hour;

    public HourlyEmployee(){

    }

    public HourlyEmployee(String name,int number,String birthday){
        super(name, number, birthday);
    }
    @Override
    public double earnings() {
        double sum = wage * hour;
        return sum;
    }

    @Override
    public String toString() {
        Employee e = new HourlyEmployee();
        return e.getName()+"   "+e.getNumber()+"   "+e.getBirthday();
    }
}
